import VueRouter from 'vue-router'//引入路由包
import home from './components/tabbar/home.vue'
import search from './components/tabbar/search.vue'
import shopcar from './components/tabbar/shopcar.vue'
import member from './components/tabbar/member.vue'
import newList from './components/new/newList.vue'
import newShow from './components/new/newShow.vue'
import imageText from './components/imageText/imageText.vue'
import imageTextshow from './components/imageText/imageTextshow.vue'
import Glist from './components/goods/Glist.vue'
import Gshow from './components/goods/Gshow.vue'
import introduce from './components/goods/Gintroduce.vue'
import webLeaveWord from './components/leaveWord/webLeaveWord.vue'
import contact from './components/contact/contact.vue'
// Vue.use(VueRouter)//安装路由
var router =new VueRouter({
        routes:[
            {path:'/',redirect:'/home'},
            {path:'/home',component:home},
            {path:'/search',component:search},
            {path:'/shopcar',component:shopcar},
            {path:'/member',component:member},
            {path:'/home/newList',component:newList},
            {path:'/home/newShow/:id',component:newShow},
            {path:'/home/imageText',component:imageText},
            {path:'/home/imageTextshow/:id',component:imageTextshow},
            {path:'/home/Glist',component:Glist},
            {path:'/home/Gshow/:id',component:Gshow},
            {path:'/home/introduce/:id',component:introduce},
            {path: '/home/webLeaveWord',component:webLeaveWord},
            {path:'/home/contact',component:contact}
    ],
    linkActiveClass:'mui-active'//mui-active 覆盖默认路由的类
    //默认的router-link-active
})
export default router
//--host 192.168.1.240